
SUBDIRS = \
	icons \
	fusa-code \
	gnome-session-code

lib_LTLIBRARIES = libssui.la

libssui_la_SOURCES = \
	logout-dialog.c \
	switch-user-dialog.c \
	switch-user-dialog.h \
	screen-fade.h			\
	screen-fade.c

libssui_la_LIBADD = \
	fusa-code/libfast-user-switch.la \
	gnome-session-code/libgnome-session.la

libssui_includedir = $(includedir)/libssui
libssui_include_HEADERS = libssui.h

libssui_la_CFLAGS = $(GTK20_CFLAGS) $(GCONF_CFLAGS) $(LIBGNOME_CFLAGS) $(LIBGNOMEUI_CFLAGS)
libssui_la_LDFLAGS = $(GTK20_LIBS) $(GCONF_LIBS) $(LIBGNOME_LIBS) $(LIBGNOMEUI_LIBS) -lXau -lXmu


bin_PROGRAMS = libssui-tool
libssui_tool_SOURCES = libssui-tool.c
libssui_tool_CFLAGS = $(LIBGNOME_CFLAGS) $(LIBGNOMEUI_CFLAGS)
libssui_tool_LDFLAGS = $(LIBGNOME_LIBS) $(LIBGNOMEUI_LIBS)
libssui_tool_LDADD = libssui.la

install-exec-local: libssui.pc gnome-session-logout.desktop gnome-session-shutdown.desktop
	$(mkinstalldirs) $(DESTDIR)$(libdir)/pkgconfig
	$(INSTALL_PROGRAM) libssui.pc $(DESTDIR)$(libdir)/pkgconfig
	$(mkinstalldirs) $(DESTDIR)$(datadir)/applications
	$(INSTALL_PROGRAM) gnome-session-logout.desktop gnome-session-shutdown.desktop $(DESTDIR)$(datadir)/applications

uninstall-local:
	cd $(DESTDIR)$(libdir)/pkgconfig; rm -f libssui.pc
	cd $(DESTDIR)$(datadir)/applications; rm -f gnome-session-shutdown.desktop gnome-session-logout.desktop


